﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Collections;

using EasySeries.Metier.Services;

namespace EasySeries
{
    public static class Program
    {
        public static IDictionary<string, Object> ContexteApplicatif = new Dictionary<string, Object>();
        public static IDictionary<string, IDictionary<string, string>> ContexteParameters = new Dictionary<string, IDictionary<string, string>>();
        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        /// 

        private static void InitParameters()
        {
            ApplicationService.InitParameters();
        }

        private static void CheckUpdate()
        {
            ApplicationService.CheckUpdate();
        }

        [STAThread]
        static void Main()
        {
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            InitParameters();
            CheckUpdate();
            Application.Run(new FrmPrincipale());
            

            //IList<String> torrents = new List<String>();
            //torrents = Xml_Parser.getFilesUrl();
        }
    }
}